<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>微小秘</title>

		<link href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
		<style type="text/css">
			.jumbotron {
				background-color: #006600;
				color: #fff;
			}
			#qrcode {
				text-align: center;
				width: 200px;
				height: 200px;
				margin: 10px auto;
			}
			.qrcode-container {
				margin-bottom: 10px;
			}
			#alert {
				display: none;
			}
		</style>
	</head>

	<body>
		<div class="jumbotron">
			<div class="container">
				<h1>微小秘</h1>
				<ul>
					<li>向附近的人自动推送信息；</li>
					<li>朋友圈自动点赞及评论；</li>
					<li>自动将消息推送给所有好友；</li>
					<li>群消息自动推送；</li>
					<li>给微信群里的每个人单独自动推送信息；</li>
					<li>给关注的公众账号自动推送消息；</li>
					<li>利用关键字搜索后营销推广；</li>
					<li>智能回复</li>
				</ul>
				<p>微信营销，so easy!</p>
			</div>
		</div>

		<div class="container">
			<p id="alert" class="alert alert-danger"><span class="bg-danger"><span class="glyphicon glyphicon-info-sign"> 您正在使用微信，请点击右上角选择在浏览器中打开，然后再下载。</span></span>
			</p>
			<a class="btn btn-success btn-block btn-lg download" href="http://utuo-soft.qiniudn.com/weimishu.apk">微秘书正式版 <span class="glyphicon glyphicon-download"></span></a>
			<a class="btn btn-info btn-block btn-lg download" href="http://utuo-soft.qiniudn.com/weixiaomi3.0.apk">微小秘3.0 <span class="glyphicon glyphicon-download"></span></a>
			<a class="btn btn-warning btn-block btn-lg download" href="http://utuo-soft.qiniudn.com/weixin_5.1.apk">微信_5.1 <span class="glyphicon glyphicon-download"></span></a>
			<div class="text-center qrcode-container">
				<p id="qrcode"></p>扫描二维码下载</div>
		</div>
		<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
		<script src="http://cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
		<script src="qrcode.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			 // 是否微信内
			function isWechat() {
				return navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger";
			};
			 // 生成二维码
			var qrcode = new QRCode(document.getElementById("qrcode"), {
				width: 200,
				height: 200
			});
			qrcode.makeCode(location.href);
			 // 如果微信内点击下载，给予提示
			$(function() {
				$(".download").on('click', function() {
					if (isWechat()) {
						$('#alert').show();
						return false;
					}
				})
			})
		</script>
	</body>

</html>